package event;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("event/Beans.xml");

        context.start();

        EventListener listener = (EventListener) context.getBean("listener");

        context.stop();

        context.refresh();

        context.close();
    }
}
